<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<%@ taglib uri="/WEB-INF/iristaglib.tld" prefix="iris"%>
<!DOCTYPE html>
<html>
<head>
<title>项目审核</title>
<%@ include file="/common/meta.jsp"%>

<script type="text/javascript" src="${res}/js/opinion/opinion.js"></script>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script> 
<script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>

<c:set var="audit_length">600</c:set>
<c:if test="${param.subGrantCode eq '2513' or param.subGrantCode eq '2515'}">
	<c:set var="audit_length">1000</c:set>
</c:if>


<script type="text/javascript">
var prcWin = new progressWin("${res}");//初始化遮罩层
messageTip.check_nopass="提示信息";

function processsFunWithLimit(type) {
	
	$.ajax({
		   type: "POST",
		   url: "${ctx}/prpapprove/approveConfirm",
		   data: {"prpCodes":"${param.prpCodes}"},
		   beforeSend : function(){
               prcWin.openWin();
               },
		   success: function(msg){
			   prcWin.closeWin();
			   var obj = eval("(" + msg + ")");
			   if(obj.limitStatus == "nolimit") { // 如果所有的都没有限制 ，那么直接提交审批
                   processsFun(type);
                   return;
               }
               if(obj.over == "noover") {
                   if(window.confirm("项目类别【"+obj.grantName+"】最多可推荐个数"+ obj.limitCount+"，已经推荐" + obj.prpCount + "个，可继续推荐个数" + (obj.limitCount - obj.prpCount))){
                       processsFun(type);
                   } else {
                       
                       return false;
                   }
               } else if(obj.over == "over") {
            	   window.alert("项目类别【"+obj.grantName+"】最多可推荐个数"+ obj.limitCount+"，已经推荐" + obj.prpCount + "个，可继续推荐个数" + (obj.limitCount - obj.prpCount));
               }
               
		   },// 表单成功提交后的回调函数
           error : function() {
               scmError("操作失败,请联系系统管理员");
               $("input[type='button'][id!='back']").attr("disabled",false);
               prcWin.closeWin();
           }
		});
}

function processsFunWithLimitOrg(type) {
	
	$.ajax({
		   type: "POST",
		   url: "${ctx}/prpapprove/approveConfirmOrg",
		   data: {"prpCodes":"${param.prpCodes}"},
		   beforeSend : function(){
			   prcWin.openWin();
			   },
		   success: function(msg){
			   prcWin.closeWin();
			   var obj = eval("(" + msg + ")");
			   if(obj.limitStatus == "nolimit") { // 如果所有的都没有限制 ，那么直接提交审批
                   processsFun(type);
                   return;
               }
               if(obj.over == "noover") {
                   if(window.confirm("项目类别【"+obj.grantName+"】最多可推荐个数"+ obj.limitCount+"，已经推荐" + obj.prpCount + "个，可继续推荐个数" + (obj.limitCount - obj.prpCount))){
                       processsFun(type);
                   } else {
                       return false;
                   }
               } else if(obj.over == "over") {
            	   window.alert("项目类别【"+obj.grantName+"】最多可推荐个数"+ obj.limitCount+"，已经推荐" + obj.prpCount + "个，可继续推荐个数" + (obj.limitCount - obj.prpCount));
               }
               
		   },// 表单成功提交后的回调函数
           error : function() {
               scmError("操作失败,请联系系统管理员");
               $("input[type='button'][id!='back']").attr("disabled",false);
               prcWin.closeWin();
           }
		});
}

function processsFun(type){
	
	<security:authorize ifAnyGranted="A_AUTH_TJBM,A_PRIVILEGE_DW">
	if (type == 'approve' &&$("#grant_type").val()=='C' && !check()) {
		return false;
	} 
	
	</security:authorize>
	    //获取申报书查看页面的附件清单
	    var passFiles = "";
	    var isExtsis = false;
	    
	    try{
	    	if("${param.subGrantCode}"!="0" ){
		     passFiles =  document.getElementById("prpFrame").contentWindow.setAttachMessage("prpContent_upload");
	    	}
		     //isExtsis =  document.getElementById("prpFrame").contentWindow.isExistAttach();//判断申报书是否有附件
	    }catch(ex){
	    	//拿不到符合的附件清单号
	    	//isExtsis=false;
	    }
	    
		$("#passFiles").attr("value",passFiles);

		var opn = $("#opinionContent").val();
		if(opn==null||opn==""){
			opn = $("#opinionContent").text();
		}
		if($.trim(opn).length==0){
			scmWarn("请输入审核意见!");
			return false;
		}
		if(opn.length > ${audit_length}){
			scmWarn("审核意见限${audit_length}字内!");
			return false;
		}
	
		if(type=="return"  && "${param.passFlag}"=="0"){
			if(!window.confirm("确定退回该项目吗？归口审核时间截止后，退回修改的申报书再提交将不能在归口审核通过。（如有特殊情况，科技厅会另行通知）"))
			{
				return false;
			}
		}else if(type=="return"  && "${param.passFlag}"=="1"){
		     if(!window.confirm("确定退回该项目吗？"))
		{
			return false;
		}
	}



		
		if(type=="notpass"){
			if(!window.confirm("确定不同意申报吗？如果确定，该申请书将作废。")){
				   return false;
			}
		}
		
		if(type=="notpass2"){
			
			type="notpass";
			if(!window.confirm("确定不同意吗？如果确定，该申请书将作废。")){
				   return false;
			}
		}
        var recommend_limit_type_value = "";
		<security:authorize ifAnyGranted="A_AUTH_TJBM">
		recommend_limit_type_value = $("#recommend_limit_type_value").val();
        if( type == 'approve' && !!!recommend_limit_type_value) {
            scmWarn("请设置归口限项方式!");
            return false;
        }
        </security:authorize>
		var prpCode = encodeURIComponent("${param.prpCodes}");
		var options = {
				type:'post',
				data:{
					"prpCodes":"${param.prpCodes}",
					"type":"${param.type}",
					"status":"${param.status}",
					"category":"${userOpinion.category}",
					"opinion":opn,
					"grant_type":$("#grant_type").val(),
					"recommend_limit_type_value":recommend_limit_type_value,
					"passFiles":passFiles,
					"creditStatus":"${creditFlag}",
                    "executionOrg":"${executionOrg}",
                    "executionNo":"${executionNo}",
                    "infodate":"${infodate}",
                    "uniqueId":"${uniqueId}",
                    "stage":"1"
				},
				beforeSend : function() {
					$("input[type='button'][id!='back']").attr("disabled",true);
					$("#type").attr("value",type);
					//$("#passFiles").attr("value",passFiles);
					prcWin.openWin();//打开遮罩层
					
				}, // 表单提交前的回调函数
				success : function(msg) {
						if(msg.indexOf(":")!=-1){
							var obj = eval("(" + msg + ")");
							if(obj.checkList!=null){
								var list = obj.checkList ;
								for ( var i = 0; i < list.length; i++) {
									irisValaddMsg(list[i]);
								}
								prcWin.closeWin();
								irisValShowMsg($("#wbox1"));
								$("input[type='button'][id!='back']").attr("disabled",false);
								return ;
							} 
						}
					if(msg.indexOf('操作成功')!=-1 || msg=='success')
						scmSuccess(msg);
					else{
						prcWin.closeWin();
						irisValaddMsg(msg);
						irisValShowMsg($("#wbox1"));
						$("input[type='button'][id!='back']").attr("disabled",false);
						return ;
					}
					prcWin.closeWin();
					if("${param.subGrantCode}"=="0" ){
						parent.$("#searchBt").click();
						parent.irisGrid.getGridDom().jqGrid("refresh",0);//0是本页1是首页	
						parent.tb_remove();
					}
					if("${param.subGrantCode}"!="0" ){
						parent.currefresh=false;
						window.parent.opener.search();
						window.parent.opener.reflushBu();
						window.setTimeout("window.close()", 2000);	
					}
					
					
					$("input[type='button'][id!='back']").attr("disabled",false);
				
				},// 表单成功提交后的回调函数
				error : function() {
					scmError("操作失败,请联系系统管理员");
					$("input[type='button'][id!='back']").attr("disabled",false);
					prcWin.closeWin();
				},
				url: "${ctx}/prpapprove/"+type
			};
		//$.ajax(options);
	//$("#mainForm").ajaxSubmit(options);
	//	parent.irisGrid.getGridDom().jqGrid("refresh",0);//0是本页1是首页
	
	
		//if (type == 1) {
		var xmlData = "";
		//收集单位确认信息
		
		if($("#grant_type").val()=='C'){
			var val = $("#opinionContent").val();
			var val = val.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br/>").replace(/\s/g,"&nbsp;").replace(/"/g,"&quot;");
			<security:authorize ifAnyGranted="A_PRIVILEGE_DW">
					$("#opinion_hidden_org").val(val);
			</security:authorize>
			<security:authorize ifAnyGranted="A_AUTH_TJBM">
				$("#opinion_hidden_recommend").val(val);
			</security:authorize>
			xmlData = prePareXmlData("sign_org");
		}	
		$("#xmlData").val(xmlData);
		$("#mainForm").ajaxSubmit(options);
}

$(document).ready(function(){
$("#back").click(function(){
	if("${param.subGrantCode}"=="0" ){
	parent.irisGrid.getGridDom().jqGrid("refresh",0);//0是本页1是首页
	parent.$("#searchBt").click();
	parent.tb_remove();
	}
	if("${param.subGrantCode}"!="0" ){
	window.close();
	}
});
refreshOpinins();
});

function check() {
	validate($("#confirmTable"), $("#confirmTable").attr("title"));
	
    if(!valResult()){
		irisValShowMsg($("#wbox1"));
		return false;
	}
	return true;
}



function openprpapprovedialog(flag){
	if (flag) {
		var url="${ctx}/prpapprove/openprpapprovedialog?category=${userOpinion.category}&flag="+flag+"&showGrant=true&TB_iframe=true&height=390&width=720";
		var title="";
		tb_show(title,url,false);
	}
}

function viewComment(){
	
	var url="${ctx}/proposal/view/audit-comment-view?posCode="+encodeURIComponent("${param.posCode}")+"&flag=historyOpinion&TB_iframe=true&height=390&width=720";
    var title="历史审核意见";
    tb_show(title,url,false);
}





function setChangeValue(selObj){
	if (selObj.value > 0)
		$("#opinionContent").val($(selObj).find("option:selected").attr("title"));
	else 
		$("#opinionContent").val("");
}
//刷新意见下拉列表
function refreshOpinins(){
	$.ajax({
		async:true,
		type:'post',
		data:{
			"userOpinion.grantCode":"${param.grantCode}",
			"userOpinion.category":"${userOpinion.category}",
			"flag":"ajaxOpinions"
		},
		success : function(data) {
			$("#opininsSpan").html("");
				var opinins='<select onchange="setChangeValue(this)" style="width:150px; overflow:hidden">'+
								'<option value="-1">请选择</option>';
				for (var i in data) {
					   if(data[i].content.length > 20){
					       opinins+='<option title = "'+data[i].content+'" value="'+data[i].id+'">'+data[i].content.substr(0,20)+"......"+'</option>';
					   }else{
						   opinins+='<option title = "'+data[i].content+'" value="'+data[i].id+'">'+data[i].content+'</option>';
					   }
				}
					opinins+='</select>';
				$("#opininsSpan").html(opinins);
		
		},
		error : function() {
			scmError("操作失败,请联系系统管理员");
		},
		url: "${ctx}/prpapprove/openprpapprovedialog"
	});
}


</script>
</head>
<body>
<c:if test="${param.subGrantCode ne '0' or empty param.subGrantCode}">
    <center>

        <iframe id="prpFrame"  frameborder="0"   height="500px" width="1000px" src=""></iframe>

	</center>
 </c:if> 
 <form method="post" id="mainForm">
		<input type="hidden" id="xmlData" name="xmlData">
	</form>   
    
	<!-- <form method="post" id="mainForm"> -->
	    <c:set var="xmlstr" value="${xmlData}" />
	    <x:parse var="xmlData" xml="${xmlstr}" />
		<input type="hidden" id="prpCodes" name="prpCodes" value="${param.prpCodes}" />
		<input type="hidden" id="type" name="type" value="${param.type}" />
		<input type="hidden" id="category" value="${userOpinion.category}"/>
		<input type="hidden" id="grant_type" name="grant_type" value="${param.grant_type}" />
		<input type="hidden" id="passFiles" name="passFiles" value="" />
		
	<c:if test="${param.grant_type eq 'C' and (param.subGrantCode eq '2513' or param.subGrantCode eq '2514' or param.subGrantCode eq '2515' )}">	
	<security:authorize ifAnyGranted="A_AUTH_TJBM">
	<div id="con_three_1" class="tab_box" >
	<div style="margin-bottom: 20px; margin-top: 10px;" >
	    <table id="confirmTable" title="推荐单位" align="center" width="100%" cellspadding="0" cellspacing="1" class="t_css" >
	    <tr>
				<td align="right" width="20%">推荐单位：</td>
				<td colspan="3"><x:out select="$xmlData/data/proposal/recomend_org_name" /></td>
			</tr>
			<tr >
				<td align="right"><span class="color_red">*</span>通讯地址：</td>
				<td colspan="1"><input  label="通讯地址" maxlength="100" name="sign_org:recommend/address" id="address" value="${personSub.address}" class="required approveInput"/></td>
				<td align="right"><span class="color_red">*</span>邮政编码：</td>
				<td colspan="1"><input  label="邮政编码" maxlength="6" name="sign_org:recommend/zip_code" id="zip_code" value="${personSub.postCode}" class="required approveInput"/></td>
			</tr>
			
			<tr >list-for-org
				<td align="right"><span class="color_red">*</span>联系人：</td>
				<td colspan="1"><input  label="联系人" maxlength="50" name="sign_org:recommend/contact_psn_name"  value="<x:out select="$xmlData/data/recommend/contact_psn_name" />" class=" required maxlength:50 approveInput"/></td>
				<td align="right"><span class="color_red">*</span>联系电话：</td>
				<td colspan="1"><input  label="联系电话" maxlength="50" name="sign_org:recommend/contact_tel_work"  value="${person.tel}" class="required maxlength:50 approveInput"/></td>
			</tr>
			
			<tr >
				<td align="right"><span class="color_red">*</span>电子信箱：</td>
				<td colspan="1"><input  label="电子信箱" maxlength="50" name="sign_org:recommend/contact_psn_email" id="contact_psn_name" value="${person.email}" class=" required maxlength:50 email approveInput"/></td>
				<td align="right"><span class="color_red">*</span>传        真：</td>
				<td colspan="1">
					<input  label="传真"  name="sign_org:recommend/contact_fax"  value="${personSub.fax}" class="required maxlength:50 approveInput"/>
				</td>
			</tr>
			
	    </table>
	    
	  </div>
	 </div>
	</security:authorize>
	</c:if>
	
	<c:if test="${param.grant_type eq 'C' }">
	<security:authorize ifAnyGranted="A_AUTH_TJBM">
	        <c:set var="extstr" value="${extInfo}" />
		    <x:parse var="extInfo" xml="${extstr}" />
	
	<div id="con_three_1" class="tab_box" >
	<div style="margin-bottom: 20px; margin-top: 10px;" >
	    <table id="confirmTable" title="推荐单位" align="center" width="100%" cellspadding="0" cellspacing="1" class="t_css">
		<tr>
			<td align="right" colspan="3"><span class="color_red">*</span>推荐等级：</td>
			<td colspan="3">
				<cpt:select id="award_level"  name="award_level" key="award_level" style="width:60px;"  onChange="initControlValue(this.id)"></cpt:select>
				<input type="hidden" name="sign_org:recommend/award_level_value" value="" label="推荐等级"  class="required"/>
				<input type="hidden" name="sign_org:recommend/award_level_name" value="" label="推荐等级"  />
			</td>
		</tr>
		<tr >	
				<td width="30%"></td>
				<td align="right" width="10%"><span class="color_red">*</span>通讯地址：</td>
				<td colspan="1" width="10%"><input label="通讯地址" maxlength="100" name="sign_org:recommend/address" value="${personSub.address}" class=" required maxlength:100 approveInput" /></td>
				<td align="right" width="10%"><span class="color_red">*</span>邮政编码：</td>
				<td colspan="1" width="10%"><input label="邮政编码" onfocus="initInput.setNumber(this,6,0,0)" name="sign_org:recommend/zip_code" value="${personSub.postCode}" class=" required  approveInput" /></td>
				<td width="30%"></td>
			</tr>
			<tr >
				<td width="30%"></td>
				<td align="right" width="10%"><span class="color_red">*</span>联系人：</td>
				<td colspan="1" width="10%"><input  label="联系人" maxlength="50" name="sign_org:recommend/contact_psn_name"  value="<x:out select="$extInfo/data/basic_info/zh_name" />" class=" required maxlength:50 approveInput"/></td>
				<td align="right" width="10%"><span class="color_red">*</span>联系电话：</td>
				<td colspan="1" width="10%"><input  label="联系电话" maxlength="50" name="sign_org:recommend/contact_tel_work"  value="${person.tel}" class="required maxlength:50 approveInput"/></td>
				<td width="30%"></td>
			</tr>
			<tr >
				<td width="30%"></td>
				<td align="right"  width="10%"><span class="color_red">*</span>电子信箱：</td>
				<td colspan="1" width="10%"><input  label="电子信箱" maxlength="50" name="sign_org:recommend/contact_psn_email"  value="${person.email}" class=" required maxlength:50 email approveInput"/></td>
				<td align="right" width="10%"><span class="color_red">*</span>传真：</td>
				<td colspan="1" width="10%">
					<input  label="传真"   name="sign_org:recommend/contact_fax"  value="<x:out select="$extInfo/data/contact/fax" />" class="required maxlength:50 approveInput"/>
				</td>
				<td width="30%"></td>
			</tr>
			<tr>
				<td width="30%"></td>
				<c:if test="${param.subGrantCode eq '3129' }">
				<td colspan="4">技术发明奖意见填写说明：应根据推荐项目的主要技术发明点及其创造性和先进性、推动行业科技进步作用、应用情况，并参照安徽省技术发明奖授奖条件，写明推荐理由和建议等级。确认推荐材料全部内容属实，且不存在任何违反《保守国家秘密法》和《科学技术保密规定》等相关法律法规及侵犯他人知识产权的情形。承诺履行相应义务和承担相应责任，并在推荐单位处加盖单位公章。不超过500个汉字。</td>
				</c:if>
				<c:if test="${param.subGrantCode eq '3131' }">
				<td colspan="4">国际科学技术合作奖意见填写说明：根据候选人或组织在与在安徽省的公民或者组织合作研究、开发等方面取得的重大科技成果、对安徽省经济与社会发展所起到的重要推动作用，以及所取得的经济、社会效益情况，参照《安徽省科学技术奖励办法实施细则》中的国际科学技术合作奖授奖条件，写明推荐理由和结论性意见，确认推荐材料全部内容属实，且不存在任何违反《保守国家秘密法》和《科学技术保密规定》等相关法律法规及侵犯他人知识产权的情形。承诺履行相应义务和承担相应责任，并在推荐单位处加盖公章。不超过500个汉字。</td>
				</c:if>
				<c:if test="${param.subGrantCode eq '3130' }">
				<td colspan="4">科学技术进步奖意见填写说明：应根据推荐项目技术创新点、技术经济指标、促进行业科技进步作用和应用情况，并参照安徽省科学技术进步奖授奖条件，写明推荐理由和建议等级。确认推荐材料全部内容属实，且不存在任何违反《保守国家秘密法》和《科学技术保密规定》等相关法律法规及侵犯他人知识产权的情形。承诺履行相应义务和承担相应责任，并在推荐单位处加盖单位公章。不超过500个汉字。</td>
				</c:if>
				<c:if test="${param.subGrantCode eq '3128' }">
				<td colspan="4">自然科学奖意见填写说明：根据项目的主要发现点及科学价值、科学界公认程度，参照安徽省自然科学奖授奖条件，写明推荐理由和建议等级。确认推荐材料全部内容属实，且不存在任何违反《保守国家秘密法》和《科学技术保密规定》等相关法律法规及侵犯他人知识产权的情形。承诺履行相应义务和承担相应责任，并在推荐单位处加盖单位公章。不超过500个汉字。</td>
				</c:if>
				<td width="30%"></td>
			</tr>
	 </table>
  </div>
 </div>
	</security:authorize>
	</c:if>
	
	<c:if test="${param.grant_type eq 'C' and  param.subGrantCode eq '2514'}">
	<security:authorize ifAnyGranted="A_PRIVILEGE_DW">
	<div id="con_three_1" class="tab_box" >
	<div style="margin-bottom: 20px; margin-top: 10px;" >
	    <table id="confirmTable" title="申报单位" align="center" width="100%" cellspadding="0" cellspacing="1" class="t_css" >
	    <tr>
				<td align="right" width="20%">单位名称：</td>
				<td colspan="3"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name" /></td>
			</tr>
			<tr >
				<td align="right">通讯地址：</td>
				<td colspan="1"><span><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address" /></span></td>
				<td align="right">邮政编码：</td>
				<td colspan="1"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/zip_code" /></td>
			</tr>
			
			<tr >
				<td align="right"><span class="color_red">*</span>联系人：</td>
				<td colspan="1"><input  label="联系人" maxlength="50" name="sign_org:organization/contact_psn"  value="" class=" required maxlength:50 approveInput"/></td>
				<td align="right"><span class="color_red">*</span>联系电话：</td>
				<td colspan="1"><input  label="联系电话" maxlength="50" name="sign_org:organization/contact_tel"  value="" class="required maxlength:50 approveInput"/></td>
			</tr>
			
			<tr >
				<td align="right"><span class="color_red">*</span>电子信箱：</td>
				<td colspan="1"><input  label="电子信箱" maxlength="50" name="sign_org:organization/email" id="contact_psn_name" value="" class=" required maxlength:50 email approveInput"/></td>
				<td align="right"><span class="color_red">*</span>传        真：</td>
				<td colspan="1">
					<input  label="传真"   name="sign_org:organization/fax"  value="" class="required maxlength:50 approveInput"/>
				</td>
			</tr>
			
	    </table>
	    
	  </div>
	 </div>
	</security:authorize>
	</c:if>	
	
	
		<center>
			选择常用审核意见：
			<span id="opininsSpan">
				
			</span>
			<div>
			    <button onclick="javascript:viewComment()" class="button_01">查看历史审核意见</button>
				<button onclick="saveUserOpinion('${ctx}', this, 'main-opinion')" class="button_01">添加至常用意见箱</button>
				<button onclick="openprpapprovedialog('list4opinions')" class="button_01">编辑常用意见箱</button>
			</div>
			<c:if test="${creditFlag == 0}">
               </br>
               <span class="tipsBox" style="font-size: 20px;font-weight: 20px">您正在审核的项目是失信项目，请填写详细失信立项意见</span>
            </c:if>
			 <table class="t_css" width="970px"  border="0" cellpadding="0" cellspacing="1" style="margin-left: 0;margin-right: 0;margin-top: 0;">
			    <tr style="margin-left: 0;margin-right: 0;margin-top: 0;">
			    <td style="color: red;margin-left: 0;margin-right: 0;margin-top: 0;" align="left">${opinion }</td>
			    </tr>
		        <tr class="li_1">
		          <td width="100%">
					  <textarea name="opinionContent" id="opinionContent" style="width:100%;resize:none;" class="input_textarea" rows="8" maxlength="${audit_length}" onfocus="InitInput.setMaxLength(this,${audit_length})"><security:authorize ifAnyGranted="A_AUTH_TJBM">该项目符合申报要求,予以推荐。</security:authorize></textarea>
	          		<input type='hidden' name='sign_org:organization/opinion_hidden' id='opinion_hidden_org' value=''>
	          		<input type='hidden' name='sign_org:recommend/opinion_hidden' id='opinion_hidden_recommend' value=''>
		          </td>
		        </tr>
		        <security:authorize ifAnyGranted="A_AUTH_TJBM">
                <tr class="li_1">
                    <td width="100%">
                        <span class="color_red">*</span>
                        归口限项方式&nbsp;&nbsp;
                        <cpt:select id="recommend_limit_type" key="recommend_limit_type" className="required select_style" value="1"
                            onChange="initControlValue(this.id)" style="width: auto"></cpt:select>
                        <input type="hidden" class="input_text" name="recommend_limit_type_value" id="recommend_limit_type_value" label="归口限项方式" value="1" />
                    </td>
                </tr>
            </security:authorize>
	      	</table>
	      	<br/>
      	</center>
      	<br/>
      <div style="text-align: center;">
      <!--业务科室科长-->
     
     <c:if test="${param.subGrantCode ne '0' or empty param.subGrantCode}">
     <security:authorize ifAnyGranted="A_PROPOSAL_AD_PASS_2">
        &nbsp;<input type="button" class="button_01" value="同意" id="approve" processType="approve" onclick="processsFun('approve')"/>
     </security:authorize>
     </c:if>
      <c:if test="${param.subGrantCode eq '0' }">
     <security:authorize ifAnyGranted="A_PROPOSAL_AD_PASS_2">
        &nbsp;<input type="button" class="button_01" value="同意" id="approve" processType="approve" onclick="processsFun('approveMove')"/>
     </security:authorize>
     </c:if>
     <!--归口管理部门-->
     <security:authorize ifAnyGranted="A_AUTH_TJBM">
        &nbsp;<input type="button" class="button_01" value="审核通过" id="approve" processType="approve" onclick="processsFunWithLimit('approve')"/>
     </security:authorize>
         <!--主管单位-->
     <security:authorize ifAnyGranted="A_AUTH_ZGDW">
        &nbsp;<input type="button" class="button_01" value="审核通过" id="approve" processType="approve" onclick="processsFun('approve')"/>
     </security:authorize>
      <!--业务科室科员-->
      <security:authorize ifAnyGranted="A_PROPOSAL_AD_PASS_1">
      	&nbsp;<input type="button" class="button_01" value="审核通过" id="approve" processType="approve" onclick="processsFun('approve')"/>
      </security:authorize>	
      
      <!--申报单位管理员-->
       <security:authorize ifAnyGranted="A_PROPOSAL_AD_SUBMIT">
      	<!-- &nbsp;<input type="button" class="button_01" value="同意上报" id="approve" processType="approve" onclick="processsFun('approve')"/> -->
        &nbsp;<input type="button" class="button_01" value="同意上报" id="approve" processType="approve" onclick="processsFunWithLimitOrg('approve')"/>
       </security:authorize>
      
        <security:authorize ifAnyGranted="A_PROPOSAL_AD_PASS_2">
      	&nbsp;<input type="button" class="button_01" value="不同意" id="veto" processType="notpass" onclick="processsFun('notpass2')"/>
     </security:authorize> 
      
   
      	 &nbsp;<input type="button" class="button_01" value="退回修改" id="return" processType="return" onclick="processsFun('return')"/>
 
      	 
        
     <security:authorize ifAnyGranted="A_AUTH_TJBM">
      	&nbsp;<input type="button" class="button_01" value="不同意申报" id="veto" processType="notpass" onclick="processsFun('notpass')"/>
     </security:authorize> 
      
     
     
        &nbsp;<input type="button" class="button_01" value="关闭" id="back"/>
		</div>
	<!-- </form> -->
	
		<script type="text/javascript">
	function loadPrpView(){
		  document.getElementById("prpFrame").src = "${ctx}/proposal/view-prp?posCodeStr="+encodeURIComponent("${param.posCode}")+"&grantCodeStr=<iris:des3 code="${param.grantCode}|${curDate}" encryptKey="111111222222333333444444" />&subGrantCodeStr=<iris:des3 code="${param.subGrantCode}|${curDate}" encryptKey="111111222222333333444444" />";
	}
	
	
	
	if("${param.subGrantCode}"!="0" ){
	loadPrpView();
	}
	</script>
</body>
</html>